package cn.wolfcode.shop.seckill.service;

import cn.wolfcode.shop.seckill.vo.SeckillGoodVo;

import java.util.List;

public interface ISeckillGoodService {
    List<SeckillGoodVo> query();

    List<SeckillGoodVo>  queryByCache();

    int reduce(Long goodId);

    SeckillGoodVo findById(Long id);

    void initGoodsToCache();

    SeckillGoodVo findCacheById(Long id);

    void synStock(Long goodId);

    void incr(Long goodId);
}
